package com.bdth.model;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class Device extends BaseModel {

	public static String CommunicationModel_GPRS = "GPRS";//网络通信
	public static String CommunicationModel_RDSS = "RDSS";//北斗通信
	public static String CommunicationModel_GPRS_RDSS = "RDSS+GPRS";//网络通信+北斗通信

	private String simNo;

	private String simIOT;

	private String communicationModel;

	private String plateNo;

	private String equipName;

	private Integer typeID;

	private String typeName;

	private Integer depId;

	private String depName;

	//private Integer colorID;

	//private String colorName;

	//private Integer ownerID;

	private String owner;

	//private Integer userID;

	//private String userName;

	private Date createDate;

	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date startTime;

	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date endTime;

	private Date lastCheckTime;

	private Integer speedLimit;

	public String getSimNo() {
		return simNo;
	}

	public void setSimNo(String simNo) {
		this.simNo = simNo;
	}

	public String getSimIOT() {
		return simIOT;
	}

	public void setSimIOT(String simIOT) {
		this.simIOT = simIOT == null ? null : simIOT.trim();
	}

	public String getCommunicationModel() {
		return communicationModel;
	}

	public void setCommunicationModel(String communicationModel) {
		this.communicationModel = communicationModel == null ? null : communicationModel.trim();
	}

	public String getEquipName() {
		return equipName;
	}

	public void setEquipName(String equipName) {
		this.equipName = equipName == null ? null : equipName.trim();
	}

	public Integer getTypeID() {
		return typeID;
	}

	public void setTypeID(Integer typeID) {
		this.typeID = typeID;
	}

	public String getTypeName() {
		return typeName;
	}

	public void setTypeName(String typeName) {
		this.typeName = typeName == null ? null : typeName.trim();
	}

	public Integer getDepId() {
		return depId;
	}

	public void setDepId(Integer depId) {
		this.depId = depId;
	}

	public String getDepName() {
		return depName;
	}

	public void setDepName(String depName) {
		this.depName = depName == null ? null : depName.trim();
	}

//	public Integer getColorID() {
//		return colorID;
//	}
//
//	public void setColorID(Integer colorID) {
//		this.colorID = colorID;
//	}
//
//	public String getColorName() {
//		return colorName;
//	}
//
//	public void setColorName(String colorName) {
//		this.colorName = colorName == null ? null : colorName.trim();
//	}

/*	public Integer getOwnerID() {
		return ownerID;
	}

	public void setOwnerID(Integer ownerID) {
		this.ownerID = ownerID;
	}

	public String getOwnerName() {
		return ownerName;
	}

	public void setOwnerName(String ownerName) {
		this.ownerName = ownerName == null ? null : ownerName.trim();
	}

	public Integer getUserID() {
		return userID;
	}

	public void setUserID(Integer userID) {
		this.userID = userID;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName == null ? null : userName.trim();
	}*/

	public String getPlateNo() {
		return plateNo;
	}

	public void setPlateNo(String plateNo) {
		this.plateNo = plateNo;
	}

	public String getOwner() {
		return owner;
	}

	public void setOwner(String owner) {
		this.owner = owner;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public Date getLastCheckTime() {
		return lastCheckTime;
	}

	public void setLastCheckTime(Date lastCheckTime) {
		this.lastCheckTime = lastCheckTime;
	}

	public Integer getSpeedLimit() {
		return speedLimit;
	}

	public void setSpeedLimit(Integer speedLimit) {
		this.speedLimit = speedLimit;
	}
}